package com.fanco.learn_datastruct_leetcode.designpattern.proxy.cglib;

/**
 * @author qiaowang 2022/2/17
 * 描述
 */
public class Client {
    public static void main(String[] args) {
        // 创建目标对象
        TeacherDao dao = new TeacherDao();

        // 获取到代理对象，并将目标对象传递给代理对象
        TeacherDao proxyInstance =(TeacherDao)new ProxyFactory(dao).getProxyInstance();

        proxyInstance.teach();
    }
}
